import { createRouter,createWebHistory } from "vue-router";

import Login from "@/components/Login.vue";
import NotFound from "@/components/404.vue"
import Index from '@/components/index.vue'

const routes = [{
    path: '/',
    component: Index
},{
    path: '/login',
    component: Login
},{
    path: '/:pathMatch(.*)*', 
    name: 'NotFound', 
    component: NotFound 
}]

const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router